class I2c:
    def __init__(self,port=1,addr=1):
       self.Port = port
       self.Addr = addr
class Monitor:
    '''采集通信参数'''
    BatteryI2c = I2c(port=3, addr = 0x42)
    ChargeI2c = I2c(port=1,addr = 0x40)
    DisChargeI2c = I2c(port =1, addr = 0x43)

class Modbus:
    pass

class Control:
    '''控制通讯参数'''
    ChargePin = 11
    DisChargePin = 12
    pass

class HardwareParams:
    def __init__(self) -> None:
        self.monitor = Monitor()
        self.modbus = Modbus()
        self.control = Control()

params = HardwareParams()